package com.ldy.gen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 社区表
 * </p>
 *
 * @author ldy
 * @since 2023-09-29 15:02:29
 */
@Getter
@Setter
@TableName("community")
@ApiModel(value = "Community对象", description = "社区表")
public class Community implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("头像地址")
    @TableField("avatar_url")
    private String avatarUrl;

    @ApiModelProperty("用户名")
    @TableField("username")
    private String username;

    @ApiModelProperty("图片地址数组")
    @TableField("img_urls")
    private String imgUrls;

    @ApiModelProperty("视频地址数组")
    @TableField("video_urls")
    private String videoUrls;

    @ApiModelProperty("发布文字内容")
    @TableField("content")
    private String content;

    @ApiModelProperty("排序号")
    @TableField("sort")
    private Long sort;

    @ApiModelProperty("点赞数")
    @TableField("like_count")
    private Integer likeCount;

    @ApiModelProperty("评论数量")
    @TableField("comment_count")
    private Integer commentCount;

    @ApiModelProperty("浏览数量")
    @TableField("views_count")
    private Integer viewsCount;

    @ApiModelProperty("商品或服务链接")
    @TableField("content_link")
    private String contentLink;

    @ApiModelProperty("是否启用，1表示启用，0表示禁用")
    @TableField("enabled")
    private Boolean enabled;

    @ApiModelProperty("数据创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("数据最后修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty("数据创建者")
    @TableField("creator")
    private String creator;

    @ApiModelProperty("数据更新者")
    @TableField("updater")
    private String updater;


}
